<h1>Editing users</h1>

<%= error_messages_for :user %>

<% form_for(:user, :url => user_path(@user), :html => { :method => :put }) do |f| %>
  <p><label for="email">Email</label><br />
  <%= f.text_field :email %></p>

  <p><label for="password">Password</label><br/>
  <%= f.password_field :password, :onkeyup => "runPassword(this.value, 'user_password');" %><br/>
  <strong>Password Strength:</strong>
  <div style="width: 100px;">
    <div id="user_password_text" style="font-size: 10px;"></div>
    <div id="user_password_bar" style="font-size: 1px; height: 2px; width: 0px; border: 1px solid white;"></div>
  </div>
  </p>

  <p><label for="password_confirmation">Confirm Password</label><br/>
  <%= f.password_field :password_confirmation %></p>

  <p><%= submit_tag "Update" %></p>
<% end %>

<%= link_to 'Back', users_path %>
